#include "EditCombo.h"
#include "StaticText.h"

EditCombo::EditCombo()
: m_pLabel(NULL)
, m_pEdit(NULL)
{
}
EditCombo::~EditCombo()
{
	if(m_pLabel)
	{
		delete m_pLabel;
		m_pLabel = NULL;
	}
	if(m_pEdit)
	{
		delete m_pEdit;
		m_pEdit = NULL;
	}
}
bool EditCombo::Setup(HWND a_hWnd, HINSTANCE a_hInst, int a_xPos, int a_yPos, int a_labelWidth, int a_labelHeight, int a_editWidth, int a_editHeight, char* a_pLabel)
{
	m_pLabel = new StaticText();
	m_pLabel->Setup(a_hWnd, a_hInst, a_xPos, a_yPos, a_labelWidth, a_labelHeight, a_pLabel);

	m_pEdit = new EditBox();
	m_pEdit->Setup(a_hWnd, a_hInst, a_xPos + a_labelWidth + 5, a_yPos, a_editWidth, a_editHeight);

	return true;
}